home *** CD-ROM | disk | FTP | other *** search
- .TH EXTRUDE
- 6 "IRIT Version 6.0"
- .SH NAME
- EXTRUDE
-
-
-
- PolygonType EXTRUDE( PolygonType Object, VectorType Dir )
-
- or
-
- SurfaceType EXTRUDE( CurveType Object, VectorType Dir )
-
- Creates an extrusion of the given Object. If Object is a
- PolygonObject, its first polygon is used as the base for the extrusion in
- Dir direction, and a closed PolygonObject is constructed. If Object
- is a CurveType, an extrusion surface is constructed instead, which is not
- a closed object (the two bases of the extrusion are excluded, and the curve
- may be open by itself).
-
- Direction Dir cannot be coplanar with the polygon plane. The curve
- may be nonplanar.
-
- Example:
-
- Cross = cbspline( 3,
- list( ctlpt( E2, -0.018, 0.001 ),
- ctlpt( E2, 0.018, 0.001 ),
- ctlpt( E2, 0.019, 0.002 ),
- ctlpt( E2, 0.018, 0.004 ),
- ctlpt( E2, -0.018, 0.004 ),
- ctlpt( E2, -0.019, 0.001 ) ),
- list( KV_OPEN ) );
- Cross = Cross + -Cross * scale( vector( 1, -1, 1 ) );
- Napkin = EXTRUDE( Cross * scale( vector( 1.6, 1.6, 1.6 ) ),
- vector( 0.02, 0.03, 0.2 ) );
-
- constructs a closed cross section Cross by duplicating one half of
- it in reverse and merging the two sub-curves. Cross is then used as
- the cross-section for the extrusion operation.
-